package com.homework.dao;

import com.homework.entity.User;

import java.util.List;

public interface UserDao {
    int insertUser(User user);

    int updateUser(User user);

    int deleteUser(int userId);

    User queryUserNameAndPassword(String username,String password);

    List<User> queryAllUser();

    User queryUserById(int id);
}
